//
// Created by harrse on 6/14/17.
//

#include "CppUTest/MemoryLeakDetectorMallocMacros.h"
#include "CppUTest/MemoryLeakDetectorNewMacros.h"
#include "cpputest.hpp"
#include "CppUTest/TestHarness.h"

TEST_GROUP(service_setup)
{
    TestApp app;
    
    void setup()
    {
        app.setup();
    }
    
    void teardown()
    {
        
    }
};

TEST(service_setup, createAdmin)
{
    diylane::service::Arguments args;
    diylane::service::Result result;
    args.set("username", "harrse");
    args.set("password", "123456");
    diylane::service::Setup::singleton().createAdmin(args, result);
    std::cout << result.dump() << std::endl;
}
